package cn.tanghom.app.oa.repository;

import java.util.List;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.domain.Sort;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import cn.tanghom.app.oa.model.Position;
import cn.tanghom.app.oa.model.Talent;

@Repository
public interface PositionRepository extends MongoRepository<Position, Long> {

	Page<Position> findByUserId(Long userId, Pageable pageable);
	
	Page<Position> findByDepId(Long depId, Pageable pageable);
	
	Page<Position> findByUserIdAndDepId(Long userId, Long depId, Pageable pageable);
}